<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <h:outputStylesheet name="./css/reset.css"/>
        <h:outputStylesheet name="./css/main.css"/>
        <title>Trang chủ</title>
    </h:head>
    <h:body>
        <div id="header" class="ui-widget ui-widget-header">
            <p style="text-align: center;font-size: 25px !important; padding-top: 25px;">Quản Trị Hệ Thống TechShop</p>
        </div>
        <div id="topmenu">
            <h:form>
                <p:menubar autoDisplay="false">
                    

                    <f:facet name="options">
                        <p:commandButton value="Đăng xuất" icon="ui-icon" action="#{staffLoginController.logout()}" rendered="#{staffLoginController.loggedIn}"/>
                    </f:facet>
                </p:menubar>
            </h:form>
        </div>
        <div id="page" class="ui-widget">
            <div id="leftmenu" class="ui-widget-content ui-corner-bottom ui-helper-clearfix ui-shadow">
                <h:form>
                    <p:menu style="width: 96%">
                        <p:submenu label="NGHIỆP VỤ">
                            <p:menuitem value="Đơn hàng" icon="ui-icon-home" outcome="/admin/order/index"/>
                            <p:menuitem value="Nhập hàng" icon="ui-icon-home" outcome="/admin/receipt_note/index"/>
                        </p:submenu>
                        <p:submenu label="SẢN PHẨM">
                            <p:menuitem value="Thêm sản phẩm" icon="ui-icon-home" outcome="/admin/phone/insert"/>
                             <p:menuitem value="Thêm thông tin kĩ thuật" icon="ui-icon-home" outcome="/admin/phone/insertTS"/>
                            <p:menuitem value="Danh sách sản phẩm" icon="ui-icon-home" outcome="/admin/phone/index"/>
                            <p:menuitem value="Hình ảnh sản phẩm" icon="ui-icon-home" outcome="/admin/phone/image"/>
                            <p:menuitem value="Kho hàng" icon="ui-icon-home" outcome="/admin/phone_code_store/index"/>
                            <p:menuitem value="Sản phẩm - Màu" icon="ui-icon-home" outcome="/admin/phone_code/index"/>
                        </p:submenu>
                        <p:submenu label="BÁO CÁO DOANH THU">
                            <p:menuitem value="Bảng" icon="ui-icon-home" outcome="/admin/revenue_expenditure/table"/>
                            <p:menuitem value="Đồ thị" icon="ui-icon-home" outcome="/admin/revenue_expenditure/chart"/>
                        </p:submenu>
                        <p:submenu label="BÁO CÁO SẢN PHẨM">
                            <p:menuitem value="Bảng" icon="ui-icon-home" outcome="/admin/inventory/table"/>
                            <p:menuitem value="Đồ thị" icon="ui-icon-home" outcome="/admin/inventory/chart"/>
                        </p:submenu>
                        <p:submenu label="QUẢN TRỊ">
                            <p:menuitem value="Cửa hàng" icon="ui-icon-home" outcome="/admin/store/index"/>
                            <p:menuitem value="Khuyến mãi" icon="ui-icon-home" outcome="/admin/promotion/index"/>
                            <p:menuitem value="Thể loại" icon="ui-icon-home" outcome="/admin/category/index"/>
                         <p:menuitem value="Bình luận" icon="ui-icon-home" outcome="/admin/comment/index"/>
                            <p:menuitem value="Đánh giá" icon="ui-icon-home" outcome="/admin/rate/index"/>
                            <p:menuitem value="Nhà Sản xuất" icon="ui-icon-home" outcome="/admin/manufacturer/index"/>
                            <p:menuitem value="Tin tức" icon="ui-icon-home" outcome="/admin/new/index"/>
                        </p:submenu>
                    </p:menu>
                </h:form>
            </div>
            <div id="content" >
                <ui:insert name="content"/>
            </div>
            <div style="clear: both;">&nbsp;</div>
        </div>
    </h:body>

</html>